const htmlToRtf = require('html-to-rtf')
const fs = require('fs')

const html = fs.readFileSync('./public/test.html').toString('utf-8');

const rtfText = htmlToRtf.convertHtmlToRtf(html);

console.log(rtfText);

fs.writeFileSync('./public/tmp.rtf', rtfText);
